@extends('admin.superadmin.layout.layout')
@section('content')
<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
                编辑列表
            </div>
            <!-- /.panel-heading -->
            <div class="panel-body">
                <div class="table-responsive">
                    <table class="table table-striped table-bordered table-hover">
                        <thead>
                            <tr>
                                <th>id</th>
                                <!-- <th>编辑名称</th> -->
                                <th>编辑名称</th>
                                <th>管理作者</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody>
                            

                            @foreach($data as $k=>$v)
                           
                            <tr>
                                <td>
                                    {{$v['id']}}
                                </td>
                                <td>
                                    {{$v['ed']}}
                                </td>
                                <td>
                                @foreach($v['au'] as $kk=>$vv)
                                    <!-- <td>{{$vv->id}}</td> -->
                                    {{$vv->name}}

                                
                                @endforeach
                                </td>
                                <td><a href="{{url('/admin/superadmin/editor/edit',['id'=>$v['id']])}}">修改</a></td>
                            </tr>    
                            
                            @endforeach  

                           
                            
                        </tbody>
                    </table>
                </div>
                <!-- /.table-responsive -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-6 -->
   
</div>
@endsection